<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>上海泛软科技有限公司-后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/Public/Css/bootstrap.min.css" rel="stylesheet" type="text/css" />


<script language="javascript" type="text/javascript" src="/Public/Js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/admin-common.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/rock_customer_list.js"></script>

<script language="javascript" type="text/javascript" src="/Public/Js/blob.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/FileSaver.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery.base64.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/jquery-1.10.2.min.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/tableExport.js"></script>
<script language="javascript" type="text/javascript" src="/Public/Js/xlsx.core.min.js"></script>
</head>

<body>

<div>
	<table width="100%">
	<tr>
	<!-- <td id="btnbnts_{rand}" style="padding-right:10px" >
		<a href="<?php echo U('ERP/rock_customer_list_addCustomer','type='.'myindex');?>"><button id="addbtn" class="btn btn-primary" click="clickwin,0" type="button"><i class="icon-plus"></i>新增</button></a>
	</td> -->
	<td>
		<input class="form-control" style="width:180px" id="shareSearch"   placeholder="名称/拥有者">
	</td>
	<td style="padding-left:10px">
		<a class="shareSearchBtn"  href="<?php echo U('ERP/rock_customer_list_sharesearch');?>"><button id="sharesearch" class="btn btn-default" click="search" type="button">搜索</button></a>
	</td>
	<td  width="90%" style="padding-left:10px">
		<div id="stewwews{rand}" class="btn-group">
		<a href="<?php echo U('ERP/rock_customer_list_shareall');?>"><button class="btn btn-default active" id="state{rand}_0" click="changlx,0" type="button">全部状态</button></a>
		<a href="<?php echo U('ERP/rock_customer_list_sharestart');?>"><button class="btn btn-default" id="state{rand}_1"  type="button">启用的</button></a>
		<a href="<?php echo U('ERP/rock_customer_list_sharestop');?>"><button class="btn btn-default" id="state{rand}_2" click="changlx,2" type="button">停用的</button></a>
		<a href="<?php echo U('ERP/rock_customer_list_shareisstart');?>"><button class="btn btn-default" id="state{rand}_3" click="changlx,3" type="button">标☆的</button></a>
		</div>	
	</td>
	<td align="right" nowrap>
		<button class="btn btn-default" id="move_{rand}" click="move" type="button">客户转移</button> &nbsp; 
		<button class="btn btn-default" id="xiang_{rand}" click="view" disabled type="button">详情</button> &nbsp; 
		<button class="btn btn-default" con="共享给我的_" click="daochu,1" type="button" id="shareExport">导出</button> 
	</td>
	</tr>
	</table>
	
</div>
<div class="blank10"></div>
<div id="view_{rand}">
</br>
<table class="table" id="sharetalbeExport" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="first">
    <td width="30" align="center" valign="middle"></td>
	<td width="30" align="center" valign="middle" ><input type="checkbox"></input></td>
    <td width="50" align="center" valign="middle">类型</td>
    <td width="100" align="left" valign="middle">名称</td>
    <td width="100" align="center" valign="middle">单位名称</td>
    <td width="80" align="center" valign="middle">来源</td>
    <td width="80" align="center" valign="middle">拥有者</td>
	<td width="100" align="center" valign="middle">电话</td>
    <td width="50" align="center" valign="middle">状态</td>
    <td width="100" align="center" valign="middle">供应商</td>
    <td width="100" align="center" valign="middle">共享给</td>
	<td width="80" align="center" valign="middle">待收</td>
	<td width="50" align="center" valign="middle">创建人</td>
  	<td width="50" align="center" valign="middle">操作</td>
  </tr>
  <?php if(is_array($Customer)): $i = 0; $__LIST__ = $Customer;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
	<td width="30" align="center" valign="middle"><?php echo ($list['id']); ?></td>
	<td width="30" align="center" valign="middle"><input type="checkbox"></input></td>
    <td width="30" align="center" valign="middle"><?php echo ($list['type']); ?></td>
    <td width="50" align="left" valign="middle"><?php echo ($list['name']); ?></td>
    <td width="100" align="center" valign="middle"><?php echo ($list['unitname']); ?></td>
    <td width="30" align="center" valign="middle"><?php echo ($list['laiyuan']); ?></td>
    <td width="50" align="center" valign="middle"><?php echo ($list['optname']); ?></td>
	<td width="50" align="center" valign="middle"><?php echo ($list['tel']); ?></td>
    <td width="50" align="center" valign="middle"><?php echo ($list['status']); ?></td>
	<td width="50" align="center" valign="middle">供应商</td>
    <td width="50" align="center" valign="middle"><?php echo ($list['shate']); ?></td>
    <td width="50" align="center" valign="middle"><?php echo ($list['moneyd']); ?></td>
	<td width="50" align="center" valign="middle"><?php echo ($list['createname']); ?></td>
    <td width="120" align="center" valign="middle"><a class="edit" href="<?php echo U('rock_customer_list_Editshareme','id='.$list['id']);?>">修改</a> <a class="del" href="<?php echo U('rock_customer_list_sharedeleteCustomer','id='.$list['id']);?>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
</div>